import React, { Component } from 'react';
import './App.css';
import Header from "./components/header";
import {Provider} from 'react-redux'
import store from './store'
import {BrowserRouter as Router, Route,Link} from 'react-router-dom'
import Home from "./pages/home";
import Detail from "./pages/detail";
class App extends Component {
  render() {
    return (
      <div className="App">
        <Provider store={store}>
            <div>
                <Header/>
                <Router>

                    <div>
                        <Route exact path='/' component={Home}/>
                        <Route path='/home' component={Home}/>
                        <Route path='/detail' component={Detail}/>
                    </div>
                </Router>
            </div>
        </Provider>
      </div>
    );
  }
}

export default App;
